package com.jemmyee.pizza.service;

import java.io.Serializable;
import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.criterion.DetachedCriteria;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jemmyee.core.dao.Page;
import com.jemmyee.pizza.dao.ILogSysDao;
import com.jemmyee.pizza.entity.LogSys;

@Service("logSysService")
public class LogSysServiceImpl implements ILogSysService<LogSys>{
	
	private static final Log log = LogFactory.getLog(LogSysServiceImpl.class);

	@Autowired
	private ILogSysDao logSysDao;


	public void delete(LogSys entity) {
		logSysDao.delete(entity);
	}

	public void deleteById(Serializable id) {
		logSysDao.deleteById(id);
	}

	public LogSys findById(Serializable id) {
		return logSysDao.findById(id);
	}

	public void save(LogSys entity) {
		logSysDao.save(entity);
	}

	public void update(LogSys entity) {
		logSysDao.update(entity);
	}

	public List<LogSys> findAll(LogSys entity) {
		return logSysDao.findAll(entity);
	}

	public Page findPageByCriteria(DetachedCriteria detachedCriteria,
			int pageSize, int startIndex,String order) {
		return logSysDao.findPageByCriteria(detachedCriteria, pageSize, startIndex, order);
	}

	public List<LogSys> findByProperty(String propertyName,
			Object value) {
		return logSysDao.findByProperty(new LogSys(), propertyName, value);
	}

	public List<LogSys> findAll() {
		return logSysDao.findAll(new LogSys());
	}

	public List<LogSys> findByCriteria(DetachedCriteria criteria) {
		return logSysDao.findByCriteria(criteria);
	}

	/* (non-Javadoc)
	 * @see com.jemmyee.core.service.IBaseService#deleteAll(java.util.List)
	 */
	public void deleteAll(List<LogSys> list) {
		// TODO Auto-generated method stub
		
	}
}
